/*************************************************************************
	> File Name: rank.c
	> Author: Angel Criss
	> Mail: abbytsing@gmail.com 
	> Created Time: Wed 05 Mar 2014 03:35:05 PM CST
 ************************************************************************/

#include<stdio.h>
void main()
{
    int i;
    char a[10];
    printf("input 10 numbers\n");
    for(i=0;i<=9;i++)
    scanf("%d",&a[i]);
    printf("now we rank this form big to small\n");
    int j,tmp;
    for(j=0;j<=9;j++)
    {
        for(i=0;i<10-j;i++)
            if(a[i+1]>a[i])
            {
                tmp=a[i];
                a[i]=a[i+1];
                a[i+1]=tmp;
            }
    }
    for(i=0;i<=9;i++)
    {
        printf("%d ",a[i]);
    }
}
        
